import Cookies from 'js-cookie'

const TokenKey = 'omp_token'
const langKey = 'lang'
const roleKey = 'role'
const nameKey = 'name'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getLang() {
  return Cookies.get(langKey)
}

export function setLang(lang) {
  return Cookies.set(langKey, lang)
}

export function getRole() {
  return Cookies.get(roleKey)
}

export function setRole(role) {
  return Cookies.set(roleKey, role)
}

export function getName() {
  return Cookies.get(nameKey)
}

export function setName(name) {
  return Cookies.set(nameKey, name)
}

